<!-- START PAGE -->
        <div id="page">
        	
            	<!-- start stats -->
                <div id="stats">
                    <!-- use it up/down on <b> tag for different colors -->                	
                	<div class="column">	<b><?php echo number_format($num_this_month); ?></b> Tổng SMS tháng <?php echo $month ?></div>
                	<div class="column last">	<b><?php echo number_format($earn_this_month); ?></b>	Tổng tiền tháng <?php echo $month ?></div>
                    <!-- this is last column -->
                	<div class="column last"><b>VND</b>
                    (Bao gồm tin nhắn SPAM)
                    </div>
                    <a href="#" title="Close Stats" class="close tips">close</a>
                    <img src="<?php echo $static_url ?>img/icons/mini/stats-arrow-top.png" width="17" height="9" alt="arrow" class="arrow" />
                </div>
                <!-- end stats -->
            	
                
                <!-- start page title -->
                <div class="page-title">
                	<div class="in">
                    		<div class="titlebar">	<h2>REPORT</h2>	<p>Thống kê số lượng sms<?php if($_GET['code'] != '') echo ' theo mã số <strong style="color:red">'.$_GET['code'].'</strong>'; ?></p></div>
                            
                            
                            <div class="clear"></div>
                    </div>
                </div>
                <!-- end page title -->
                
                    
            <!-- BEGIN LIST CONTENT -->
            <div class="content" style="z-index: 730;">
                <div class="simplebox grid740" style="z-index: 500;">
                	
                    <form action="<?php echo $base_url ?>/website_sms/index" method="get" name="form2" id="form2">
						<div class="st-form-line" style="z-index: 520;">
						Chọn tháng:	<input type="text" name="month" style="width:40px;" class="datepicker-input hasDatepicker" id="month">
                        <input type="text" name="year" style="width:100px;" class="datepicker-input hasDatepicker" id="year">
								<!-- start default date picker -->
								<script type="text/javascript">
								$(function() {
									$( "#month" ).datepicker({
										defaultDate: "+1w",
										changeMonth: true,
										numberOfMonths: 3,
										onSelect: function( selectedDate ) {
											
										}
									});
								});
								</script>
								<!-- end default date picker -->
							<a class="icon-button tips" href="javascript:;" onClick="document.form2.submit()" original-title="Search">
								<img width="18" height="18" alt="icon" src="<?php echo $static_url ?>/img/icons/button/search.png">
							</a>
							<div class="clear" style="z-index: 510;"></div> 
						</div>
						</form>
                        
                    <div class="titleh" style="z-index: 490;">
                        <h3>Danh sách sms website<?php if($find != '') echo ' | Search with "'.$find.'"' ?></h3>
                        <div class="shortcuts-icons" style="z-index: 640;">
                        </div>
                    </div>
                        
                        <table class="tablesorter" id="myTable"> 
                            <thead> 
                                <tr> 
                                    <th class="header">STT</th> 
                                    <th class="header">Ngày</th>
                                    <th class="header">Nhà mạng</th>
                                    <th class="header">Số lượng SMS</th> 
                                </tr> 
                            </thead> 
                            
                            <tbody> 
                                <?php
                                if(!empty($items)){
                                    foreach($items as $website){
                                ?>
                                <tr> 
                                    <td><?php echo $website['STT'] ?></td> 
                                    <td><?php echo $website['earn_date'] ?></td>
                                    <td><?php echo $website['telco'] ?></td>
                                    <td><?php echo $website['SoLuong'] ?></td> 
                                </tr> 
                                <?php
                                    }
                                }
                                ?>
                                
                            </tbody> 
                        </table>
                        <script language="javascript" type="text/javascript">
                        $(document).ready(function(){
                            $("div[class='context']").hover(
                            function(){
                                $(this).children(".context_opt").show();
                            },
                            function(){
                                $(this).children(".context_opt").fadeOut('fast');
                            });
                        });
                        </script>
                </div>
                <?php if(!empty($paginate)): ?>
                <ul class="pagination">
                <?php echo $paginate; ?>
                </ul>
                <?php endif; ?>
				<!-- END LIST CONTENT -->
        </div>
        <!-- END PAGE -->